package com.yhc.order.api;

import com.yhc.common.dto.BaseResult;
import com.yhc.order.api.request.OrderSaveRequest;
import com.yhc.order.api.response.OrderSaveResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

@FeignClient(name = "seata-order" , path = "/order")
public interface OrderApi {

    /**
     * 保存订单
     *
     * @param request
     * @return
     */
    @RequestMapping("/save")
    BaseResult<OrderSaveResponse> save(@RequestBody @Valid OrderSaveRequest request);


}
